package edu.protbioinfo;

import java.util.List;

import junit.framework.TestCase;
import edu.protbioinfo.QueryMatcher.MatchWord;

public class QueryMatcherTest extends TestCase {
	public void testGenerateMatchWords() throws Exception{
		QueryMatcher matcher = new QueryMatcher(new char[]{'A', 'I', 'L', 'S'}, 2, 5.0);
		List<MatchWord> result = matcher.generate("ASSLAIAIA");
		
		for(MatchWord mw : result){
			System.out.println(mw.getWordPair().second() + "\t" + mw.getWordPair().first() + "(" + (mw.getIndex() + 1) + ":"+ mw.getScore() +")");
		}
	}
}	
